<div class="box-body">
    <form class="layui-form" action="{:url('/wms/warea/save')}" method="post">
        <div class="layui-form-item">
            <label class="layui-form-label xrequired">区域名称</label>
            <div class="layui-input-block">
                <input type="text" autocomplete="off" placeholder="区域名称"  name="name" {if isset($area)}value="{$area.name}"{/if} class="layui-input" />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label xrequired">区域编号</label>
            <div class="layui-input-block">
                <input type="text" autocomplete="off" placeholder="区域编号"  name="code" {if isset($area)}value="{$area.code}"{/if} class="layui-input" />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">区域面积</label>
            <div class="layui-input-block">
                <input type="number" autocomplete="off" placeholder="区域面积"  name="area" {if isset($area)}value="{$area.area}"{else}value="0"{/if} class="layui-input" />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <input type="text" autocomplete="off" placeholder="备注"  name="remark" {if isset($area)}value="{$area.remark}"{/if} class="layui-input" />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-block">
                <input type="checkbox" name="status" value="1" {if !isset($area) || (isset($area) && $area.status)}checked{/if} lay-skin="switch">
            </div>
        </div>
        {if isset($area)}
        <input type="hidden" name="area_id" value="{$area.area_id}">
        {/if}
    </form>
</div>